package com.qf.spring.pojo;

/**
 * @author 王博康
 * @version 1.0
 * @project 01_spring
 * @description: TODO
 * @date 2022/3/3 21:37 星期四
 */
public class User {
    //属性
    private String name;
    private int age;
    //提供属性赋值方法
    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
